Optimal. Leaf size=25 \[ \frac {a x^{1+m}}{1+m}+\frac {b x^{3+m}}{3+m} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.01, antiderivative size = 25, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 1, integrand size = 11, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.091, Rules used = {14}
\begin {gather*} \frac {a x^{m+1}}{m+1}+\frac {b x^{m+3}}{m+3} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 14
Rubi steps
\begin {align*} \int x^m \left (a+b x^2\right ) \, dx &=\int \left (a x^m+b x^{2+m}\right ) \, dx\\ &=\frac {a x^{1+m}}{1+m}+\frac {b x^{3+m}}{3+m}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.02, size = 25, normalized size = 1.00 \begin {gather*} \frac {a x^{1+m}}{1+m}+\frac {b x^{3+m}}{3+m} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.01, size = 30, normalized size = 1.20
method | result | size |
norman | \(\frac {a x \,{\mathrm e}^{m \ln \left (x \right )}}{1+m}+\frac {b \,x^{3} {\mathrm e}^{m \ln \left (x \right )}}{3+m}\) | \(30\) |
risch | \(\frac {x \left (b m \,x^{2}+b \,x^{2}+a m +3 a \right ) x^{m}}{\left (3+m \right ) \left (1+m \right )}\) | \(34\) |
gosper | \(\frac {x^{1+m} \left (b m \,x^{2}+b \,x^{2}+a m +3 a \right )}{\left (3+m \right ) \left (1+m \right )}\) | \(35\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.30, size = 25, normalized size = 1.00 \begin {gather*} \frac {b x^{m + 3}}{m + 3} + \frac {a x^{m + 1}}{m + 1} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 1.78, size = 33, normalized size = 1.32 \begin {gather*} \frac {{\left ({\left (b m + b\right )} x^{3} + {\left (a m + 3 \, a\right )} x\right )} x^{m}}{m^{2} + 4 \, m + 3} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 94 vs.
\(2 (19) = 38\).
time = 0.13, size = 94, normalized size = 3.76 \begin {gather*} \begin {cases} - \frac {a}{2 x^{2}} + b \log {\left (x \right )} & \text {for}\: m = -3 \\a \log {\left (x \right )} + \frac {b x^{2}}{2} & \text {for}\: m = -1 \\\frac {a m x x^{m}}{m^{2} + 4 m + 3} + \frac {3 a x x^{m}}{m^{2} + 4 m + 3} + \frac {b m x^{3} x^{m}}{m^{2} + 4 m + 3} + \frac {b x^{3} x^{m}}{m^{2} + 4 m + 3} & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.90, size = 43, normalized size = 1.72 \begin {gather*} \frac {b m x^{3} x^{m} + b x^{3} x^{m} + a m x x^{m} + 3 \, a x x^{m}}{m^{2} + 4 \, m + 3} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 4.80, size = 34, normalized size = 1.36 \begin {gather*} \frac {x^{m+1}\,\left (3\,a+a\,m+b\,x^2+b\,m\,x^2\right )}{m^2+4\,m+3} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________